#pragma once
#include<stdio.h>
#include<assert.h>
#include<string.h>
#include<stdlib.h>
#include<Windows.h>

#define MAX 100
#define MAX_NAME 10
#define MAX_GENDER 5
#define	MAX_TELE 12
#define MAX_ADDRESS 20

struct PeopleInformation
{
	char name[MAX_NAME];
	char gender[5];
	int age;
	char telephone[MAX_TELE];
	char address[20];
};

struct Contacts
{
	struct PeopleInformation data[MAX];
	int count;
};

void menu();
void InitContacts(struct Contacts* pc);
void ClearContacts(struct Contacts* pc);
void AddContacts(struct Contacts* pc);
void ShowContacts(const struct Contacts* pc);
void DeleteContacts(struct Contacts* pc);
void ModifyContacts(struct Contacts* pc);
void SearchContacts(struct Contacts* pc);
void SortContacts(struct Contacts* pc);

